package com.go.dp.bridge.car;

import com.go.dp.bridge.engine.Engine;

public abstract class Vehicle {
	protected String type;
	private Engine engine;

	public Vehicle(String type, Engine engine) {
		this.type = type;
		this.engine = engine;
	}

	public Engine getEngine() {
		return engine;
	}

	public void setEngine(Engine engine) {
		this.engine = engine;
	}

	public void setupEngine() {
		System.out.println("setup " + this.getType() + " " + this.engine.getType());
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
